/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.ts.manager;

import java.util.Collection;
import java.util.List;

import com.xy.biz.ts.domain.bo.PracticeRecordBO;
import com.xy.biz.ts.domain.query.PracticeRecordQuery;

/**
 *
 *
 * @author wwj
 * @date 2021-4-7
 */
public interface PracticeRecordManager {

	/**
	 * 保存
	 *
	 * @param practiceRecordBO
	 */
	int savePracticeRecord(PracticeRecordBO practiceRecordBO);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllPracticeRecord(Collection<PracticeRecordBO> collection);

	/**
	 * 更新
	 *
	 * @param practiceRecordBO
	 */
	int updatePracticeRecord(PracticeRecordBO practiceRecordBO);

	/**
	 * 删除
	 *
	 * @param practiceRecordId
	 */
	int deletePracticeRecord(Long practiceRecordId);

	/**
	 * 查找一个
	 *
	 * @param practiceRecordId
	 * @return
	 */
	PracticeRecordBO getPracticeRecord(Long practiceRecordId);

	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 */
	List<PracticeRecordBO> listPracticeRecordById(Collection<Long> collection);

	/**
	 * 查找多个
	 *
	 * @param query 查找条件
	 */
	List<PracticeRecordBO> listPracticeRecord(PracticeRecordQuery query);

	/**
	 * 统计个数
	 *
	 * @param query 查找条件
	 */
	int countPracticeRecord(PracticeRecordQuery query);

}
